<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div data-th-replace="common/functionDepict"></div>
        <div>
            <div class="row">
                <div class="pt10">
                    <div class="col-sm-8">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>填写基本信息</h5>
                            </div>
                            <div class="ibox-content clearfix pt10">
                                <form class="form-horizontal m-t" id="commentForm">
                                    <div class="form-horizontal">
                                        <input name="id" th:value="${linkConfig['id']}" type="hidden"/>
                                        <input name="parentId" th:value="${linkConfig['parentId']}" type="hidden"/>
                                        <input name="linkType" th:value="${linkConfig['linkType']}" type="hidden"/>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 链接名</label>
                                            <div class="col-sm-8">
                                                <input class="validate-data form-control" type="text" name="linkName" th:value="${linkConfig['linkName']}" />
                                                <span class="help-block m-b-none c-999">链接在页面显示的内容</span>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>

                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 链接URL</label>
                                            <div class="col-sm-8">
                                                <input class="validate-data form-control" type="text" name="linkUrl" th:value="${linkConfig['linkUrl']}" />
                                                <span class="help-block m-b-none c-999">链接URL，点击链接跳转的URL,如过链接请填写：“javascript:void(0); ”不包含双引号</span>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>

                                        <div class="form-group">
                                            <label class="col-sm-2 control-label"><i class="c-red">*</i> 是否打开新窗口</label>
                                            <div class="col-sm-8">
                                                <div class="clearfix">
                                                    <div class="input-group">
                                                        <select name="linkNew" class="form-control mb10 chosen-select-no-search" style="width: 300px;" tabindex="1">
                                                            <option th:selected="${linkConfig['linkNew']}==1" value="1">不打开新窗口</option>
                                                            <option th:selected="${linkConfig['linkNew']}==2" value="2">打开新窗口</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <span class="help-block m-b-none c-999">选择链接打开页面方式</span>
                                                <span class="c-red m-t-xs show">公共头部导航区域宽度有限， 无限增加可能会导致其它区域错位或超出，请自行调整。建议最多10个（2字符导航）</span>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right">排序</label>
                                            <div class="col-sm-8">
                                                <input class="validate-data form-control" type="text" name="sort" th:value="${linkConfig['sort']}" />
                                                <span class="help-block m-b-none c-999">链接排序，序号越小越靠前</span>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <div class="col-sm-8 col-sm-offset-2">
                                                <button id="save-back" class="btn btn-primary ml10" type="button">保存，返回</button>
                                                <button id="save-continue" class="btn btn-danger" type="button">保存，继续创建</button>
                                                <button id="cancel" class="btn btn-white ml10" type="button">取消</button>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div data-th-replace="common/importantNotes"></div>
                </div>
            </div>
        </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <script type="text/javascript" th:src="@{{path}/admin/business/manage/config/save-link-config.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>
